package com.agileboot.domain.airport.dashboard;

import com.agileboot.common.core.dto.ResponseDTO;
import com.agileboot.domain.airport.dashboard.db.*;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author valarchie
 */
@Service
@RequiredArgsConstructor
public class SirDashBoardApplicationService {

    @Autowired
    @Qualifier("sirStatisticsServiceImpl")
    private final ISirStatisticsService statisticsService;

    public List<SirStatisticsDTO> getInspectionSummary() {
        List<SirStatisticsDTO> statistics = statisticsService.getMonthlyCoreStatistics();
        return statistics;
    }


    public List<SirWeeklyChecksDTO> getWeeklyCheckStatistics() {
        List<SirWeeklyChecksDTO> statistics = statisticsService.getWeeklyCheckStatistics();
        return statistics;
    }

    public List<SirWeeklyComplianceDTO> getWeeklyComplianceStatistics() {
        List<SirWeeklyComplianceDTO> statistics = statisticsService.getWeeklyComplianceStatistics();
        return statistics;
    }

    public List<SirDailySummaryDTO> getDailySummaryForLast30Days() {
        List<SirDailySummaryDTO> statistics = statisticsService.getDailySummaryForLast30Days();
        return statistics;
    }

    public List<SirRecentActivityDTO> getRecentActivities() {
        List<SirRecentActivityDTO> activities = statisticsService.getRecentActivities();
        return activities;
    }

}
